<?php
	/**
	 * 
	 */
	class BrokenAction extends CommonAction {
		public function insert(){
			$model = D ( 'Broken' );
			if (false === $model->create ()) {
				$this->error ( $model->getError () );
			}
			//保存当前数据对象
			$list = $model->add ();
			if ($list!==false) { //保存成功
				$this->ajaxReturn(1,1,1);
			} else {
				//失败提示
				$this->ajaxReturn(0,0,0);
			}
		}
	}
	
?>